home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / printing / hputils.arc / HPDSKJET.HEX < prev   
Text File  |  1990-04-01  |  7KB  |  197 lines

  1. ****************************************************************
  2. *
  3. *    Hewlett-Packard DeskJet Printer Driver Configuration Table
  4. *    For use with First Word Plus
  5. *    This file contains tables defining the code sequences
  6. *    to be sent to the printer to perform various functions
  7. *    and to access the characters from codes in the Atari
  8. *    character set.
  9. *    Author: Frederic MORA  
  10. ****************************************************************
  11.  
  12. *
  13. * Name of printer
  14. * ===============
  15. *
  16. HP DeskJet
  17.  
  18.  
  19. *    Configuration variables
  20. *    =======================
  21. *
  22. *    These six variables define certain printer
  23. *    configuration details required by 1st Word Plus:
  24. *
  25. *    (1)  1 for microspacing daisywheel, else 0
  26. *    (2)  Character width in printer units (daisy)
  27. *    (3)  Linefeed height in printer units
  28. *    (4)  Mid-carriage (daisy) pixels/inch (matrix) (96H for 150 dpi)
  29. *    (5)  Bold offset in printer units (daisy)
  30. *    (6)  1 to pause printing between pages, else 0
  31.  
  32.  
  33. 0, 0, C, 96, 0, 0
  34.  
  35.  
  36. *
  37. * Printer characteristics
  38. * =======================
  39. *
  40. * This table specifies the printer command sequences.
  41. * If the top bit of a code is set, then this indicates the position
  42. * of a parameter passed to the printer. The code whose top bit is set
  43. * in this table is added to the parameter passed before being sent to the
  44. * printer. It is not used in all command sequences, only in those where 
  45. * the printer requires  a variable value such as the length of a vertical 
  46. * tab.
  47. *
  48. * 0            * Character width
  49. 1, D, A        * Linefeed WITH return
  50. * 2            * Forward print
  51. * 3            * Reverse print
  52. * 4            * Vertical tab to line 
  53. * 5            * Absolute horizontal tab 
  54. 6, 1B, 28, 73, 33, 42      * Draft bold on:            Esc ( s 3 B
  55. 7, 1B, 28, 73, 30, 42      * Draft bold off:           Esc ( s 0 B
  56. 8, 1B, 28, 73, 33, 42    * Near Letter Quality bold on:Esc ( s 3 B
  57. 9, 1B, 28, 73, 30, 42      * NLQ bold off:             Esc ( s 0 B
  58. * "Draft italic" on (double fixed Underline):          Esc & d 2 D
  59. A, 1B, 26, 64, 32, 44
  60. B, 1B, 26, 64, 40          * Draft italic off          Esc & d @
  61. * "NLQ italic" on (double fixed Underline):            Esc & d 2 D
  62. C, 1B, 26, 64, 32, 44      * NLQ italic on
  63. D, 1B,  26, 64, 40         * NLQ italic off            Esc & d @
  64. * E            * Draft light on
  65. * F            * Draft light off
  66. *10, 1B, 78, 0  * NLQ light on
  67. *11, 1B, 78, 1  * NLQ light off
  68. * Draft superscript on with 6 point superscript: Esc ( s 6 V Esc ( s +1 U
  69. 12, 1B, 28, 73, 36, 56, 1B, 28, 73, 2B, 31, 55
  70.  * Draft superscript off (back to 12 point):     Esc ( s 0 U Esc ( s 12 V
  71. 13, 1B, 28, 73, 30, 55, 1B, 28, 73, 31, 32, 56
  72. * NLQ superscript on with 6 point superscript:   Esc ( s 6 V Esc ( s +1 U
  73. 14, 1B, 28, 73, 36, 56, 1B, 28, 73, 2B, 31, 55
  74. * NLQ superscript off (back to 12 point):        Esc ( s 0 U Esc ( s 12 V
  75. 15, 1B, 28, 73, 30, 55, 1B, 28, 73, 31, 32, 56
  76. * Draft subscript on with 6 point subscript:     Esc ( s -1 U Esc ( s 6 V
  77. 16, 1B, 28, 73, 2D, 31, 55, 1B, 28, 73, 36, 56
  78. * Draft subscript off (back to 12 point):        Esc ( s 0 U Esc ( s 12 V
  79. 17, 1B, 28, 73, 30, 55, 1B, 28, 73, 31, 32, 56
  80. * NLQ subscript on with 6 point subscript:       Esc ( s -1 U Esc ( s 6 V
  81. 18, 1B, 28, 73, 2D, 31, 55, 1B, 28, 73, 36, 56
  82. * NLQ subscript off (back to 12 point):          Esc ( s 0 U Esc ( s 12 V
  83. 19, 1B, 28, 73, 30, 55, 1B, 28, 73, 31, 32, 56
  84. * Draft underline (single fixed) on:             Esc & d 1 D
  85. 1A, 1B, 26, 64, 31, 44
  86. 1B, 1B, 26, 64, 40  * Draft underline off:       Esc & d @
  87. * NLQ underline (single fixed) on:               Esc & d 1 D
  88. 1C, 1B, 26, 64, 31, 44
  89. 1D, 1B, 26, 64, 40  * NLQ underline off:         Esc & d @
  90. 1E, 1B, 26, 6C, 30, 48   * Formfeed              Esc & l 0 H
  91. *1F, 12         * Horizontal initialisation
  92. *20, C          * Vertical initialisation
  93. 21, 1B, 45      * Termination: printer reset     Esc E
  94. 22,  8                        * Backspace
  95. 23,  D                        * Carriage return
  96. *24, 1B, 43, 80                * Form length in lines
  97. *25, 1B, 41, 80, 1B, 32        * Set line feed to N units
  98. *26  * Start graphics  
  99. * 27                          * Reserved
  100.  
  101. 0              * NULL termination byte
  102.  
  103. *
  104. * Translation Table
  105. * =================
  106. *
  107. * This table provides translation from single Atari input bytes into
  108. * multiple printer codes, and is useful for printing extraneous
  109. * characters such as accented characters etc. All characters are 
  110. * subjected to translation, but if there is no entry in the table for
  111. * a particular code, then the original code is sent to the printer.
  112. *
  113. * The entries must be arranged in ascending order of Atari input
  114. * code. The table is NULL terminated.
  115. * This table assumes that the HP DeskJet printer is set in 
  116. * PC8 Character Set (Switches A1 to A4 down)
  117.  
  118. 0                                  * NULL: print a space 
  119. 1             * No Up arrow
  120. 2             * No Down arrow
  121. 3             * No Right arrow
  122. 4             * No Left arrow
  123. 5             * No close box
  124. 6             * No size box
  125. 7             * No full box
  126. 8             * No tick
  127. 9             * No clock
  128. A             * No bell
  129. B, 0D                              * musical note
  130. E             * No LH Atari symbol     
  131. F             * No RH Atari symbol
  132. 10, 30        * LCD 0
  133. 11, 31        * LCD 1
  134. 12, 32        * LCD 2    
  135. 13, 33        * LCD 3
  136. 14, 34        * LCD 4
  137. 15, 35        * LCD 5
  138. 16, 36        * LCD 6
  139. 17, 37        * LCD 7     
  140. 18, 38        * LCD 8
  141. 19, 39        * LCD 9     
  142. 7F                       * No triangle
  143. 9E, E1                   * Esszet
  144. B0         * No Lower case a tilde
  145. B1         * No Lower case o tilde
  146. B2         * No Capital crossed O 
  147. B3         * No Lower case crossed o
  148. B4         * No lower case oe dipthong
  149. B5                       * No capital OE dipthong
  150. B6, 41                   * No capital A grave: print A
  151. B7, 41                   * No capital A tilde: print A
  152. B8, 4F                   * No capital O tilde: print O
  153. B9         * No Umlaut
  154. BA, 27                   * Acute: print '
  155. BB, C5                   * Dagger
  156. BC, 15                   * Paragraph symbol
  157. BD                       * No copyright symbol
  158. BE                       * No Registered symbol
  159. BF                       * No Trademark symbol
  160. C0        * No ij ligature
  161. C1        * No IJ ligature
  162. C2        * No Hebrew...
  163. C3
  164. C4
  165. C5
  166. C6
  167. C7
  168. C8
  169. C9
  170. CA
  171. CB
  172. CC
  173. CD
  174. CE
  175. CF
  176. D0
  177. D1
  178. D2
  179. D3
  180. D4
  181. D5
  182. D6
  183. D7
  184. D8
  185. D9
  186. DA
  187. DB
  188. DC
  189. DD, 14       * Section mark 
  190. DE, 5E       * Dropped circumflex
  191. DF, EC       *  infinity
  192. FE           * No superior 3
  193. FF        * No macron     
  194. 0
  195.  
  196. əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə